|
![](/i/fill.gif) |
Hi Mike, Thanks! I am new to this site, so it seems I have posted my question in
two different places. Is it possible to make the shape of that cavity as an
independent object like a sphere so that I can use illumination features? I
mean, when I use """ finish{ambient 0.3 specular 0.5 reflection 0.4} """
inside the difference command block, I think it doesn't illuminates the new
shape, but it first illuminates the sphere and then make a geometrical
subtraction (though I may be wrong). I want to do some illumination effect on
the object so that when I turn the camera, the gloss and other effect can be
observed.
Mike Williams <nos### [at] econym demon co uk> wrote:
> Wasn't it Amir_ni who wrote:
> >Hi,
> >
> >I am trying to make a special shape in povray that is made by spheres, but
> >neither "intersection" nor "difference" commands cannot help me. This is the
> >problem: if the position of eight spheres are in a cubic form in a way that the
> >distance between neighbor sphere is less than 1.4 times the radius of
> >spheres, a
> >cavity is formed in the center of cube. I want to make the shape of
> >that cavity.
> >The following code contains the the coordinates of eight spheres. In advance, I
> >do appreciate your help.
>
> Difference the spheres from a box
>
> difference {
>
> box {d/2, -d/2}
>
> sphere { <d/2, d/2, d/2> , d/1.4}
> sphere { <-d/2, -d/2, -d/2> , d/1.4}
>
> sphere { <-d/2, d/2, d/2> , d/1.4}
> sphere { <d/2, -d/2, -d/2> , d/1.4}
>
> sphere { <d/2, -d/2, d/2> , d/1.4}
> sphere { <-d/2, d/2, -d/2> , d/1.4}
>
> sphere { <d/2, d/2, -d/2> , d/1.4}
> sphere { <-d/2, -d/2, d/2> , d/1.4}
>
> pigment{ color rgb<1,0,0> }
> }
>
>
> --
> Mike Williams
> Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |